
## This file is part of the Simplemail project.
#  Copyright (c) 2008 the Simplemail Team (see authors).
#
#  For the full copyright and license information, please view the COPYING
#  file that was distributed with this source code. You can also view the
#  COPYING file online at http://unixforum.org.ua/misc/COPYING.txt
#
#  @copyright  (c) the authors
#  @author     Dmitriy Shilenko <rtyug@ukr.net>
#  @license    GPLv2 http://unixforum.org.ua/misc/COPYING.txt
#  @package    Panel Mailbox
#  @version    $Id: $

use CGI::Carp qw(fatalsToBrowser);

%{$se} = (

    # DB
    'dsn' => 'DBI:SQLite:dbname=/tmp/mailusers.db',
    # 'dsn' => 'DBI:MySQL:database=mailusers;host=localhost',
    # user from db
    'db_user' => '',
    'db_pass' => '',

    # Path to the templates, by default folder placed in .,
    # if you will change a way to to by templates, write a complete way
    # or     'dirt' => 'template/',
    # or     'dirt' => '../template/',
    
    'dirt' => 'template/',

    # url
    # 'url' => 'http://domain.tld/simplemailadmin/',

    # Maildir
    'maildir' => '/var/spool/mail/',

    #maillog file
    'maillog' => '/var/log/maillog',

    # User from which works transport of mta
    'transport_user' => 'virtual',

    # How many to destroy lines on a page
    'line_from_page' => '30',    # 1, or 1000++

# Time of life of cookies for an administrator and user.
# For an administrator with the purpose of safety of cookies not active, you can change
#        +30s                              30 seconds from now
#        +10m                              ten minutes from now
#        +1h                               one hour from now
#        -1d                               yesterday (i.e. "ASAP!")
#        now                               immediately
#        +3M                               in three months
#        +10y                              in ten years time
#        Thursday, 25-Apr-1999 00:40:33 GMT  at the indicated time & date

    'time_cookie_admin' => '',        # +14d - 14 day, '' - Disable
    'time_cookie_users' => '+14d',    # +14d - 14 day, '' - Disable

    # To include viewing of statistics of dens
    'active_logsm' => '1',            # 1 - Enable, 0 - Disable

# A number of dens is in a table, old records on expiration of time will be remote
    'time_which_active_logsm' => '604800',    # sec (7 day)

    # to look over the ravines of postal server
    'active_logmta' => '1',                   # 1 - Enable, 0 - Disable

    #Number of lines in a table, which are written down with file ravine.
    #For the loaded servers can plenty of lines.
    'time_which_active_logmta' => '23000',    # max line online

    #type of storage of passwords.
    # '0' - clean text
    # 'md5crypt'  - md5crypt
    'type_passwd' => 'md5crypt',              # 'md5crypt' or '0'

    # The maximal is long password (6-9 is recommended)
    'max_long_passwd' => '3',                 # '2', '10' ...

    #maximal number of the entered not correct passwords
    'max_error_login' => '5',

    # time in the flow of which is blocked input of password
    'max_error_login_time' => '1800',         # max time bad passwd 30min

    #cashing of templates, for a fast-acting
    'blind_cache' => '1',                     # 1 - Enable, 0 - Disable

    # smtp_server
    'smtp_server' => 'localhost',             # (recommended 'localhost')

    # mailbox which official reports leave from (Can absent '')
    'mail_from' => '',   # '' - no email from, exemple: 'no_repley@mydomain.com'

    'text_new_mailbox' => 'Welcome to your new account'
);

#unless (defined($se->{'url'})) { $se->{'url'} ='http://'.$ENV{'SERVER_NAME'}.'/index.pl';}

1;
